package demo;

import com.tedu.InputField;

/**
 * DTO:数据传输对象，通常用于表示用户传递过来的信息
 * 例如下面的类便是的是用户进行登录时传递过来的登录信息
 */

public class UserLoginDTO {
    @InputField(title = "用户名",notNull = true)
    private String username;
    @InputField(title = "密码",notNull = true)
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserLoginDTO{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
